<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------
namespace app\video\behavior\file_upload_complete_after;

/**
 * 提交智能审核
 * @package app\video\behavior\file_upload_complete_after
 * @author jason wang
 */
class submitAIMediaAuditJob{
    /**
     * 执行行为 run方法是Behavior唯一的接口
     * @access public
     * @return void
     */
    public function run($params){
    	$VideoId 	 = $params['VideoId'];

        //判断是否开启自动审核
        if(config('upload_AI_media_audit_job')){
            $rel = controller('Vodlogic', 'logic') -> submitAIMediaAuditJob($VideoId);
            //更新审核表字段为 智能审核中
            $map = [];
            $map['video_id'] = $VideoId;
            model('VideoPlayAiExamine') -> where($map)-> setField('examine_status', 1);
        }
        
    }
}
